using System;
using System.ServiceModel;

namespace Wojna.ServiceContracts
{
    [ServiceContract(Namespace = "http://Wojna.ServiceContracts/2007/11", Name = "IPlay", SessionMode = SessionMode.Required, CallbackContract = typeof(IPlayCallback))]
    public interface IPlay
    {
        [OperationContract(IsTerminating = false, IsInitiating = true, IsOneWay = true, AsyncPattern = false, Action = "JoinGame")]
        void JoinGame(Wojna.ServiceContracts.JoinGameRequest requst);
        [OperationContract(IsTerminating = true, IsInitiating = false, IsOneWay = true, AsyncPattern = false, Action = "LeaveGame")]
        void LeaveGame(System.String nick);
        [OperationContract(IsTerminating = false, IsInitiating = false, IsOneWay = true, AsyncPattern = false, Action = "PolozKarte")]
        void PolozKarte(Wojna.DataContracts.Karta karta);
    }
}
